.ding-container {
  min-height: 100vh;
  background: transparent;
  padding: 20rpx;
}

/* H5平台样式 */
.h5-platform {
  .search-container {
    max-width: 600px;
    margin: 0 auto 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.3s ease;
    padding: 24px;
    
    &:hover {
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }
    
    .search-type {
      .type-btn {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 6px;
      }
    }
    
    .search-input {
      .input {
        transition: all 0.3s ease;
        padding: 12px 16px;
        font-size: 14px;
        
        &:focus {
          border-color: #4299e1;
          box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
        }
      }
      
      .search-btn {
        transition: all 0.3s ease;
        padding: 12px 24px;
        font-size: 14px;
        min-width: 80px;
        
        &:hover {
          background: #1e7e34;
          transform: translateY(-1px);
        }
      }
    }
  }
  
  .orders-container {
    max-width: 600px;
    margin: 0 auto;
    
    .order-card {
      transition: all 0.3s ease;
      border: 1px solid #e2e8f0;
      
      &:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border-color: #cbd5e0;
      }
      
      .action-section {
        .confirm-btn,
        .cancel-btn {
          transition: all 0.3s ease;
          padding: 12px 0;
          font-size: 14px;
          
          &:hover {
            transform: translateY(-1px);
          }
        }
      }
      
      .payment-section {
        .pay-btn {
          transition: all 0.3s ease;
          padding: 16px 0;
          font-size: 16px;
          
          &:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
          }
        }
      }
    }
  }
}

/* 小程序平台样式 */
.miniprogram-platform {
  /* 保持原有样式 */
}

/* H5端适配 */
@media (min-width: 769px) {
  .ding-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    background: #f8fafc;
  }
  
  .header {
    padding: 30px 0;
    margin-bottom: 40px;
    
    .title {
      font-size: 32px;
    }
    
    .back-btn {
      font-size: 16px;
      padding: 12px 24px;
      border-radius: 8px;
    }
  }
  
  .search-container {
    padding: 40px;
    margin-bottom: 40px;
    border-radius: 16px;
    
    .search-type {
      gap: 20px;
      margin-bottom: 30px;
      
      .type-btn {
        font-size: 16px;
        padding: 16px 24px;
        border-radius: 8px;
      }
    }
    
    .search-input {
      gap: 20px;
      
      .input {
        padding: 16px 20px;
        font-size: 16px;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
      }
      
      .input:focus {
        border-color: #4299e1;
        box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
      }
      
      .search-btn {
        font-size: 16px;
        padding: 16px 32px;
        border-radius: 8px;
        min-width: 120px;
        width: 100px;
      }
    }
  }
  
  .orders-container {
    .result-title {
      font-size: 24px;
      margin-bottom: 24px;
    }
    
    .order-card {
      padding: 32px;
      margin-bottom: 24px;
      border-radius: 16px;
      
      .order-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
        
        .order-number {
          font-size: 18px;
        }
        
        .order-status {
          font-size: 14px;
          padding: 8px 16px;
          border-radius: 20px;
        }
      }
      
      .order-info {
        .info-row {
          margin-bottom: 16px;
          
          .label {
            font-size: 15px;
            min-width: 120px;
          }
          
          .value {
            font-size: 15px;
          }
        }
        
        .action-section {
          margin-top: 32px;
          padding-top: 24px;
          gap: 16px;
          
          .confirm-btn,
          .cancel-btn {
            padding: 14px 0;
            font-size: 16px;
            border-radius: 8px;
          }
        }
        
        .payment-section {
          margin-top: 32px;
          padding-top: 24px;
          
          .pay-btn {
            padding: 16px 0;
            font-size: 18px;
            border-radius: 12px;
          }
        }
      }
    }
    
    .no-orders {
      padding: 80px 40px;
      border-radius: 16px;
      
      .no-orders-text {
        font-size: 20px;
        margin-bottom: 16px;
      }
      
      .no-orders-tip {
        font-size: 16px;
      }
    }
  }
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20rpx 0;
  margin-bottom: 20rpx;
  border-bottom: 1rpx solid #e9ecef;

  .title {
    font-size: 36rpx;
    font-weight: 600;
    color: #212529;
  }

  .back-btn {
    background: #fff;
    border: 1rpx solid #dee2e6;
    color: #6c757d;
    font-size: 20rpx;
    padding: 12rpx 24rpx;
    border-radius: 8rpx;
    box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1);
    margin-right: 20rpx;
    width: 100rpx;
    &:hover {
      background: #f8f9fa;
      border-color: #adb5bd;
    }
  }
}

.search-container {
  background: #fff;
  border-radius: 12rpx;
  padding: 30rpx;
  margin-bottom: 30rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);

  .search-type {
    display: flex;
    gap: 20rpx;
    margin-bottom: 30rpx;

    .type-btn {
      flex: 1;
      background: #f8f9fa;
      border: 1rpx solid #dee2e6;
      color: #6c757d;
      font-size: 28rpx;
      padding: 20rpx;
      border-radius: 8rpx;
      transition: all 0.3s ease;

      &.active {
        background: #007bff;
        border-color: #007bff;
        color: #fff;
      }

      &:hover {
        background: #e9ecef;
      }

      &.active:hover {
        background: #0056b3;
      }
    }
  }

  .search-input {
    display: flex;
    gap: 20rpx;
    align-items: center;

    .input {
      flex: 1;
      background: #f8f9fa;
      border: 1rpx solid #dee2e6;
      border-radius: 8rpx;
      padding: 24rpx 20rpx;
      font-size: 28rpx;
      color: #495057;

      &::placeholder {
        color: #adb5bd;
      }

      &:focus {
        border-color: #007bff;
        background: #fff;
        outline: none;
      }
    }

    .search-btn {
      background: #28a745;
      border: none;
      color: #fff;
      font-size: 28rpx;
      padding: 24rpx 32rpx;
      border-radius: 8rpx;
      min-width: 120rpx;
      transition: all 0.3s ease;

      &:hover {
        background: #218838;
      }

      &:active {
        background: #1e7e34;
      }
    }
  }
}

.orders-container {
  .result-title {
    font-size: 32rpx;
    font-weight: 600;
    color: #212529;
    margin-bottom: 24rpx;
    display: block;
  }

  .order-card {
    background: #fff;
    border-radius: 12rpx;
    padding: 30rpx;
    margin-bottom: 24rpx;
    box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
    border: 1rpx solid #e9ecef;

    .order-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 24rpx;
      padding-bottom: 16rpx;
      border-bottom: 1rpx solid #f1f3f4;

      .order-number {
        font-size: 30rpx;
        font-weight: 600;
        color: #212529;
      }

      .order-status {
        font-size: 24rpx;
        padding: 8rpx 16rpx;
        border-radius: 20rpx;
        font-weight: 500;

        &.status-pending {
          background: #fff3cd;
          color: #856404;
          border: 1rpx solid #ffeaa7;
        }

        &.status-confirmed {
          background: #d1ecf1;
          color: #0c5460;
          border: 1rpx solid #bee5eb;
        }

        &.status-in_progress {
          background: #cce5ff;
          color: #004085;
          border: 1rpx solid #99d6ff;
        }

        &.status-completed {
          background: #d4edda;
          color: #155724;
          border: 1rpx solid #c3e6cb;
        }

        &.status-cancelled {
          background: #f8d7da;
          color: #721c24;
          border: 1rpx solid #f5c6cb;
        }
      }
    }

    .order-info {
      .info-row {
        display: flex;
        margin-bottom: 16rpx;
        align-items: flex-start;

        .label {
          font-size: 26rpx;
          color: #6c757d;
          min-width: 160rpx;
          font-weight: 500;
        }

        .value {
          font-size: 26rpx;
          color: #212529;
          flex: 1;
          word-break: break-all;

          &.problem {
            line-height: 1.5;
          }

          &.cost {
            color: #dc3545;
            font-weight: 600;
          }

          &.paid {
            color: #28a745;
            font-weight: 600;
          }

          &.unpaid {
            color: #dc3545;
            font-weight: 600;
          }
        }
      }

      .action-section {
        margin-top: 40rpx;
        padding-top: 30rpx;
        border-top: 1rpx solid #e9ecef;
        display: flex;
        gap: 20rpx;

        .confirm-btn {
          flex: 1;
          background: #007bff;
          color: #fff;
          border: none;
          border-radius: 12rpx;
          padding: 20rpx 0;
          font-size: 28rpx;
          font-weight: 600;
          transition: all 0.3s ease;

          &:hover {
            background: #0056b3;
            transform: translateY(-1rpx);
          }

          &:active {
            transform: translateY(1rpx);
          }
        }

        .cancel-btn {
          flex: 1;
          background: #dc3545;
          color: #fff;
          border: none;
          border-radius: 12rpx;
          padding: 20rpx 0;
          font-size: 28rpx;
          font-weight: 600;
          transition: all 0.3s ease;

          &:hover {
            background: #c82333;
            transform: translateY(-1rpx);
          }

          &:active {
            transform: translateY(1rpx);
          }
        }
      }

      .payment-section {
        margin-top: 40rpx;
        padding-top: 30rpx;
        border-top: 1rpx solid #e9ecef;

        .pay-btn {
          width: 100%;
          background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
          color: #fff;
          border: none;
          border-radius: 16rpx;
          padding: 24rpx 0;
          font-size: 32rpx;
          font-weight: 600;
          box-shadow: 0 8rpx 30rpx rgba(102, 126, 234, 0.3);
          transition: all 0.3s ease;

          &:hover {
            transform: translateY(-2rpx);
            box-shadow: 0 12rpx 40rpx rgba(102, 126, 234, 0.4);
          }

          &:active {
            transform: translateY(2rpx);
            box-shadow: 0 4rpx 16rpx rgba(102, 126, 234, 0.3);
          }
        }
      }
    }
  }

  .no-orders {
    text-align: center;
    padding: 80rpx 40rpx;
    background: #fff;
    border-radius: 12rpx;
    box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);

    .no-orders-text {
      font-size: 32rpx;
      color: #6c757d;
      margin-bottom: 16rpx;
      display: block;
    }

    .no-orders-tip {
      font-size: 26rpx;
      color: #adb5bd;
      line-height: 1.5;
      display: block;
    }
  }
}

// 响应式设计
@media (max-width: 750rpx) {
  .ding-container {
    padding: 16rpx;
  }

  .header {
    padding: 16rpx 0;
    margin-bottom: 16rpx;

    .title {
      font-size: 32rpx;
    }

    .back-btn {
      font-size: 20rpx;
      padding: 10rpx 20rpx;
    }
  }

  .search-container {
    padding: 24rpx;
    margin-bottom: 24rpx;

    .search-type {
      gap: 16rpx;
      margin-bottom: 24rpx;

      .type-btn {
        font-size: 26rpx;
        padding: 16rpx;
      }
    }

    .search-input {
      gap: 16rpx;

      .input {
        padding: 20rpx 16rpx;
        font-size: 26rpx;
      }

      .search-btn {
        font-size: 26rpx;
        padding: 20rpx 28rpx;
        min-width: 100rpx;
      }
    }
  }

  .orders-container {
    .result-title {
      font-size: 28rpx;
      margin-bottom: 20rpx;
    }

    .order-card {
      padding: 24rpx;
      margin-bottom: 20rpx;

      .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12rpx;

        .order-number {
          font-size: 28rpx;
        }

        .order-status {
          font-size: 22rpx;
          padding: 6rpx 12rpx;
        }
      }

      .order-info {
        .info-row {
          flex-direction: column;
          margin-bottom: 20rpx;

          .label {
            font-size: 24rpx;
            margin-bottom: 8rpx;
            min-width: auto;
          }

          .value {
            font-size: 24rpx;
          }
        }
      }

      .payment-section {
        margin-top: 32rpx;
        padding-top: 24rpx;

        .pay-btn {
          padding: 20rpx 0;
          font-size: 28rpx;
          border-radius: 12rpx;
        }
      }
    }

    .no-orders {
      padding: 60rpx 30rpx;

      .no-orders-text {
        font-size: 28rpx;
      }

      .no-orders-tip {
        font-size: 24rpx;
      }
    }
  }
}